home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / src / bin / hinge / O.sgi / Makefile < prev    next >
Makefile  |  1993-11-10  |  1KB  |  47 lines

  1. GEOM = ../../../..
  2. include ${GEOM}/makefiles/Makedefs.global
  3. include ../Makedefs
  4. include ${GEOM}/makefiles/Makerules.obj
  5.  
  6. BINNAME=${TARGETS}
  7.  
  8. LIBS=${ALLOOGLLIBS} -lforms -lfm_s -lgl_s -lm -lmalloc
  9.  
  10. OBJS = hinge.o hui.o panel.o lang.o
  11.  
  12. SED =     sed \
  13.         -e 's/\\/\\\\/g'        \
  14.         -e 's/"/\\"/g'            \
  15.         -e '1s/^\(.*\)$$/"\1/'         \
  16.         -e 's/^\(.*\)$$/\1\\n\\/'    \
  17.         -e '$$s/^\(.*\)/\1n"/'
  18.  
  19.  
  20. install:    install_module
  21.  
  22. install_module: ${BINNAME}
  23.     ${INSTALLMODULE} ${BINNAME} ../.geomview-hinge ${MODULEDIR}
  24.  
  25. ${BINNAME}:    ${OBJS}
  26.     /bin/rm -f ../${BINNAME} || :
  27.     ${CC} ${CFLAGS} -o ${BINNAME} ${OBJS} ${LIBS}
  28.     ln ${BINNAME} ..
  29.  
  30. hingehelp.h:    ../hingehelp
  31.     /bin/rm -f ../hingehelp.h
  32.     ( echo '/*' ; \
  33.       echo ' * hingehelp.h: generated automatically from file "hingehelp"' ; \
  34.       echo ' *' ; \
  35.       echo ' *  to modify, edit "hingehelp" and type "make hingehelp.h"' ; \
  36.       echo ' */' ; \
  37.       ${SED} < ../hingehelp ) > ../hingehelp.h
  38.  
  39. hingedata.h:    ../hingedata
  40.     /bin/rm -f ../hingedata.h
  41.     ( echo '/*' ; \
  42.       echo ' * hingedata.h: generated automatically from file "hingedata"' ; \
  43.       echo ' *' ; \
  44.       echo ' *  to modify, edit hingedata and type "make hingedata.h"' ; \
  45.       echo ' */' ; \
  46.       ${SED} < ../hingedata ) > ../hingedata.h
  47.